finding the six trigonometric functions